package com.xrtn.mapper;

import com.xrtn.bean.TCardUsrRel;

import java.util.List;
import java.util.Map;

public interface TCardUsrRelMapper {
    int deleteByPrimaryKey(Integer relId);

    int deleteByUserId(Integer userId);

    int insert(TCardUsrRel record);

    int insertSelective(TCardUsrRel record);

    TCardUsrRel selectByPrimaryKey(Integer relId);

    List<TCardUsrRel> selectByMap(Map<String,Object> params);

    List<TCardUsrRel> selectByListMap(Map<String,Object> params);

    List<Map<String,Object>> selectCardLeftTimeSum(Map<String,Object> params);

    List<Map<String,Object>> selectUserUseCardList(Map<String,Object> params);

    List<Map<String,Object>> selectUserAccountCardList(Map<String,Object> params);

    int updateByPrimaryKeySelective(TCardUsrRel record);

    int updateByPrimaryKey(TCardUsrRel record);
}